package com.ethanzzh.ethanzzh_xdclass.mapper;

import com.ethanzzh.ethanzzh_xdclass.model.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;
@org.apache.ibatis.annotations.Mapper
public interface UserMapper extends Mapper<User> {


    @Select("select * from user where openid = #{openid}")
    User findByOpenId(@Param("openid") String openId);

    @Select("select * from user where id = #{id}")
    User getUser(@Param("id") Integer id);



}